<?php if (!defined('THINK_PATH')) exit();?><script type="text/javascript" src="<?php echo C('HOME_JS');?>jquery-2.0.3.min.js?v=<?php echo C('VERSION');?>"></script>
<style>
    .page span,.page a{
        padding:4px 8px;
        border:1px solid #CDCDCD;
        margin-right:5px;
    }
    a{
        text-decoration: none;
    }
    table{
        width:80%;
        font-size: 12px;
    }
	th,td{
		border-bottom: #eee solid 1px;
        border-collapse:collapse;
        text-align: center;
        height: 30px;
	}
	.layui-form-pane .layui-input-block{
		margin-left:125px;
	}
</style>
<div class="body" style="text-align:center;">
<table style="width:95%;margin:auto;">
	<tr>
		<th>名称</th>
		<th>上传时间</th>
	</tr>
	<?php if(is_array($historyReport)): $i = 0; $__LIST__ = $historyReport;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tr>
		<td>
            <a class="lsjcbg" time="<?php echo ($vo['init_time']); ?>" uid="<?php echo ($vo['uid']); ?>" url="<?php echo ($vo['url']); ?>" href="javascript:;">
                <?php echo ($vo["name"]); ?>_<?php echo ($vo["email"]); ?>_<?php echo ($vo["phone"]); ?>_<?php echo ($vo["load_time"]); ?>_<?php echo ($vo["uid"]); ?>.pdf<span class="spacess"></span></a>
        </td>
		<td><?php echo ($vo["upload_time"]); ?><span class="spacess"></span></td>
	</tr><?php endforeach; endif; else: echo "" ;endif; ?>
</table>
<div class="page" style="font-size:12px;margin-top:10px;"><?php echo ($page); ?></div>
</div>
<script>
  $('table').on('click','.lsjcbg',function(){
      var url =$(this).attr('url');
	  var time =$(this).attr('time');
	  var uid =$(this).attr('uid');
	//   var newDate = new Date();
	//   newDate.setTime(time * 1000);
	//   var date = newDate.toLocaleString();
          parent.layer.open({
              title:'<?php echo (L("YHGL_VIEW_JCBG")); ?>'+'[上传时间：'+time+']'
										+'<a style="margin-left:10px;" href="'
										+'<?php echo U("Api/ZyApi/download_jcbg");?>?uid='+uid+'&upload_time='+time
										+'">下载json数据</a>',
              type: 2,
              area: ['900px', '500px'],
              fixed: false, //不固定
              maxmin: true,
              shadeClose: true,
              content: url,
              end:function(){
                  location.reload();
              }
          });
  })
</script>